The Linux du command also looks at the space used, but unlike the DF command, the Linux du command is a view of the space used by the file and directory disks, or some difference from the DF command.1. command format:du [Options] [file]2. Command
Original
Detailed DF command usage
A: displays the disk usage of all file systems and partitions.
I: displays the I-nodes usage.
K: The size is represented by K (default)
T: displays the disk usage of all partitions in a file
How to remotely clean up expired backup bitsCN.com on 48 sets of MySQLDBServer in Production
How to remotely clean up expired backups on 48 MySQL DB servers in Production
How to remotely clean up expired backups on 48 groups of MySQL DB servers!
Common commands for Linux O & M: du and Common commands for linux: duThe commonly used du-sh * Linux du command is also used to view the space, but unlike the df command, the Linux du command is used to view the space used by files and directory
Detailed DF command usage
A: displays the disk usage of all file systems and partitions.I: displays the I-nodes usage.K: The size is represented by K (default)T: displays the disk usage of all partitions in a file system.X: displays the disk
DF Command verbose usage
A: Displays all file systems and disk usage scenarios for each partition
I: Show the usage of i-nodes
K: size is denoted by K (default value)
T: Displays all partition disk usage for one file system
X: Displays all
1.1 Package Unpack Command (TAR)Common packing commands: tar, usually with the following parameters:
-C: Set parameters command for compressed files (create)
-x: Extracting parameter commands for files
-Z: Do you have the gzip attribute at the same
Remove command rm under SSH
Start to find online explanation RM [path] can delete files/foldersBut when I used to delete, I was prompted:
RM admin1Rm:cannot remove ' admin1 ': is a directory
Later found RmDir, but only the empty folder can be
1. Introduction to Commandsdu (disk usage) calculates the disk usage for each file, and the directory takes the total amount.2. UsageUsage:du [options] ... [File] ... Or:du [options] ...--files0-from=f3. Options4. Example 1: Show the size of a
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.